hi

i'm having a hard time increasing the memory limit of my local laptop version of my system. it means i can't test new changes, as i keep getting the white screen of death.

i have used xampp to setup an apache/mysql/php test environment on my laptop.

so when i test my site, i display http://localhost/catresort, in my browser.

i have a phpinfo.php file to display settings, in the root of my site.
if i display localhost/catresort/phpinfo.php it says memory limit is 32M
according to the phpinfo, the loaded config file is C:\xampp\apache\bin\php.ini

so i edited the php.ini to set it to 96M
if i bringup the xampp environment, and from http://localhost/xampp/ show the phpinfo file, it says 96M.

but the localhost/catresort one says it is still 32M.
so it's getting overridden somewhere. between the 96m of the php.ini, before my drupal executes.

i stuck an extra php.ini with just the memory override, into the catresort root directory, to try and set it to 96m, but it doesnt seem to take.

i edited the default.settings.php file, in sites/default, and tried to override it to 96m, but that didn't take either.

i don't execute htaccess, cos i never managed to get mod-rewrite working in localhost mode. so i can't override it there - htaccess breaks my local version. (its fine in prod)

is there another place where the memory limit could be getting overridden or set?
i've scanned my files for 32M, but can't find it anywhere.
every instance i have already changed to 96m

please help!

(my aunt has a cat resort. myself, i like dogs)

Comments

gpk’s picture

Have you tried restarting Apache?

The fact that localhost/catresort/phpinfo.php shows 32M is key... To get per-directory php.ini files to work you may have to change another setting in the main php.ini, to enable per-directory php.ini files. NB you need to put a per-directory php.ini in the same folder as Drupal's index.php.

Also to get mod_rewrite to work with XAMPP check here: http://drupal.org/node/161975 (look under Clean URLs) and http://drupal.org/node/43545.

gpk
----
www.alexoria.co.uk

ozchris’s picture

yeah, stopped and started apache thru the xampp control panel.

i figured that if there was a difference between the apache phpinfo and the catresort phpinfo, it meant that overrides were already allowed. although i haven't played with any other parameters in there.

i have a php.ini in the same folder as the index.php for catresort.

it has me stumped. but then i've never heard of "per-directory" before. all my php knowledge is self-taught and from forums like this.

it would be nice to get rewrites working locally. ta

ozchris’s picture

could have been some cacheing going on with the phpinfo.

today i bit the bullet and edited php.ini in the main apache file, and set it to 128m.
stopped and started apache.
both localhost/phpinfo.php and localhost/catresort/phpinfo.php showed 128m.

but i'm still getting the white screen of death when i try to access the admin menu.

physically deleted as many contributor modules as i could. ran update.php.

i can create content, but not do any admin.

as this is just my testing environment, i think i will completely start again.

ozchris’s picture

i deleted the database, upgraded to version 6.4, placed the modules in sites/all/modules instead of just /modules, and am running with 128m.
i learnt not to try and turn on all the modules at the same time - it exceeds execution time, so had to turn them on gradually.
still haven't configured all the settings yet.

have just started trying to turn on mod rewrite.
currently languishing with 403 errors. hopefully i will get there.

cheers

ozchris’s picture

replying to myself again, just so you don't waste time.

i had enabled the mod rewrite load module, but forgot to move it.

didnt need to do any other changes, for virtual hosts, as the clean urls then worked.
i dont mind typing in localhost.

now to get my localhost mail settings right....

gpk’s picture

Glad you are making progress.

gpk
----
www.alexoria.co.uk

boris_isc’s picture

I had the same problem...
But my phpinfo shows that Apache using php.ini in XAMPP\apache\bin\php.ini and not in XAMPP\php\php.ini,
so I edit it and Drupal shows 128M in http://localhost/drupal-6.9/?q=admin/reports/status

Boris,
http://energydialogue.org.ru

reij’s picture

my phpinfo shows that Apache using php.ini in XAMPP\apache\bin\php.ini
Thank you boris! This solved my problem; I couldn't find the correct php.ini file.